package com.ruoyi.canteen.service;

import java.util.List;
import com.ruoyi.canteen.domain.CanteenUser;
import org.apache.ibatis.annotations.Update;

/**
 * 点餐用户Service接口
 * 
 * @author zhangw
 * @date 2021-09-19
 */
public interface ICanteenUserService 
{
    /**
     * 查询点餐用户
     * 
     * @param id 点餐用户主键
     * @return 点餐用户
     */
    public CanteenUser selectCanteenUserById(String id);

    /**
     * 查询点餐用户列表
     * 
     * @param canteenUser 点餐用户
     * @return 点餐用户集合
     */
    public List<CanteenUser> selectCanteenUserList(CanteenUser canteenUser);

    /**
     * 新增点餐用户
     * 
     * @param canteenUser 点餐用户
     * @return 结果
     */
    public int insertCanteenUser(CanteenUser canteenUser);

    /**
     * 修改点餐用户
     * 
     * @param canteenUser 点餐用户
     * @return 结果
     */
    public int updateCanteenUser(CanteenUser canteenUser);

    /**
     * 批量删除点餐用户
     * 
     * @param ids 需要删除的点餐用户主键集合
     * @return 结果
     */
    public int deleteCanteenUserByIds(String[] ids);

    /**
     * 删除点餐用户信息
     * 
     * @param id 点餐用户主键
     * @return 结果
     */
    public int deleteCanteenUserById(String id);

    /**
     * 通过openid，更新用户信息
     * @param canteenUser 微信用户信息
     * @return
     */
    public int updateUserWxInfo(CanteenUser canteenUser);

    /**
     * 新增企业点餐用户
     * @param canteenUser
     * @return
     */
    public int insertQyCanteenUser(CanteenUser canteenUser);


}
